﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace ModelViewer
{
    /// <summary>
    /// Management of a mesh
    /// </summary>
    public class Mesh
    {
        #region Fields

        private bool enabled = true;

        private string name = "";

        private ModelMesh modelMesh = null;


        #endregion

        #region Properties

        /// <summary>
        /// Mesh display enabled
        /// </summary>
        public bool Enabled
        {
            get { return enabled; }
            set { enabled = value; }
        }

        /// <summary>
        /// Mesh name
        /// </summary>
        public string Name
        {
            get { return name; }
            set { name = value; }
        }

        /// <summary>
        /// The underlying XNA model mesh
        /// </summary>
        public ModelMesh ModelMesh
        {
            get { return modelMesh; }
            set { modelMesh = value; }
        }

        #endregion

    }
}
